package com.crm.controller;

import com.crm.pojo.BasicType;
import com.crm.pojo.Satisfaction;
import com.crm.service.BasicTypeService;
import com.crm.service.SatisfactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SatisfactionController {
    @Autowired
    private SatisfactionService satisfactionService;
    @GetMapping(value = "/satisfactions.do")
    public List<Satisfaction> selectAllSatisfactions(){
        return satisfactionService.findAllSatisfactions() ;
    }
}
